<style>
    #content{
        background-color:#FFFFFF;
    }
    .title{
        font-size:20px;
        text-align:left;
    }
</style>
<div id="content">
    <div style="width:80%;padding-left:10%">
        <div class="title">待格式化Json</div>
        <textarea  class="form-control" style="height:200px" ng-model="beforeFormatJson"></textarea>
        <div class="row">
            <div class="pull-right">
                <button class="btn btn-info" ng-click="format()" style="margin-right:40px">格式化</button>
            </div>
        </div>
        <div class="title">格式化Json</div>
        <textarea  class="form-control" style="height:400px" ng-model="afterFormatJson" readonly></textarea>
    </div>
</div>